﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Main.aspx.cs" Inherits="Photography.Main" %>

<%@ Register Src="Controls/JQuerySlideshow/SlideShowControl.ascx" TagName="SlideShowControl"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:LinqDataSource ID="GalleryPhotosDataSource" runat="server" ContextTypeName="Photography.App_Data.PhotographyDataContext"
        OnSelecting="GetGalleryPhotos">
    </asp:LinqDataSource>
    <asp:LinqDataSource ID="GalleriesDataSource" runat="server" ContextTypeName="Photography.App_Data.PhotographyDataContext"
        OnSelecting="GetGalleries">
    </asp:LinqDataSource>
    <tr><td>
    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="GalleriesDataSource">
        <ItemTemplate>
            <a href="Portfolio.aspx?cat=<%#Request.QueryString["cat"]%>&gal=<%#DataBinder.Eval(Container.DataItem, "ID") %>">
                <%#DataBinder.Eval(Container.DataItem, "Name") %>
            </a>
        </ItemTemplate>
    </asp:Repeater>
    <uc1:SlideShowControl ID="SlideShowControl1" runat="server" DataSourceID="GalleryPhotosDataSource"
        DescriptionField="Description" SourceField="Location" TitleField="Title" />
    </td></tr>
</asp:Content>
